#!/bin/bash
# Game: Counter Strike 2D
# Date: 27.08.2011
#
cd /usr/local/games/cs2d
SELECT=`zenity --list --window-icon=/usr/local/games/cs2d/cs2d.png --width=200 --height=120 --radiolist --column "AT" --column "Screen Resolution" \
       TRUE  "Window Mode" \
	   FALSE "Full Screen Mode"`
	  
if echo "$SELECT" | grep $"Window Mode"; then
   aoss ./CounterStrike2D -win -w 640 -h 480 -24bit
fi
if echo "$SELECT" | grep $"Full Screen Mode"; then
   aoss ./CounterStrike2D -full -w 800 -h 600 -24bit
fi
exit 0
